package com.jd.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jd.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.autoconfigure.kafka.KafkaProperties;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;
import java.util.zip.Adler32;


/**
 * <p>
 * 
 * </p>
 *
 * @author jd
 * @since 2023-02-28
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Shop extends BaseDomain {

    @Excel(name="店铺名称", orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name="座机", orderNum = "1", width = 30, isImportField = "true_st")
    private String tel;
    @Excel(name="提交审核时间", orderNum = "1", width = 30, isImportField = "true_st", format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd-hh-mm-ss",timezone = "GMT+8")
    private Date registerTime;
    /**
     * 店铺状态：0待审核，1以审核，-1驳回，2待激活
     */
    @Excel(name="状态", replace = {"待审核_0","待激活_1","已激活_2","审核不通过_3"}, orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state;
    @Excel(name="店铺地址", orderNum = "1", width = 30, isImportField = "true_st")
    private String address;
    private String logo;
    private Long adminId;


    private Employee employee;

    private List<ShopAuditLog> auditLogs;



}
